package com.sw.youvote.shared.objects;

import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


/* 30/07/10 JA
 * Clase para los usuarios Wocom
 */

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class WocomUserBean implements Serializable {

	private static final long serialVersionUID = 1L;
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String name;
	@Persistent
	private String nickname;
	@Persistent
	private String email;
	@Persistent
	private String imageurl;
	
	
	public WocomUserBean() {
		
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getNickname() {
		return name;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	public String getImageurl() {
		return imageurl;
	}
	
	public void setImageurl(String imageurl){
		this.imageurl = imageurl;
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		
		sb.append("[");
		sb.append("id");
		sb.append("=");
		sb.append(this.id);
		sb.append(",");
		sb.append("name");
		sb.append("=");
		sb.append(this.name);
		sb.append(",");
		sb.append("nickname");
		sb.append("=");
		sb.append(this.nickname);
		sb.append(",");
		sb.append("email");
		sb.append("=");
		sb.append(this.email);
		sb.append(",");
		sb.append("imageurl");
		sb.append("=");
		sb.append(this.imageurl);
		
		sb.append("]");
		return sb.toString();
	}
}
